package ltd.dujiabao.springcloud.service.impl;

import ltd.dujiabao.springcloud.dao.PaymentMapper;
import ltd.dujiabao.springcloud.service.PaymentService;
import ltd.dujiabao.springcloud.entities.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author : DuJiabao
 * @Project : springcloud
 * @Time : 2021/5/21 11:13
 * @Desc :
 */
@Service
public class PaymentServiceImpl implements PaymentService {
  @Autowired
  PaymentMapper paymentMapper;

  @Override
  public int create(Payment payment) {
    return paymentMapper.create(payment);
  }

  @Override
  public Payment selectById(Long id) {
    return paymentMapper.selectById(id);
  }
}
